/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * callbacks.h
 * Copyright (C) chaitanya chandel 2009 <cchandel@yahoo.com>
 * 
 * callbacks.h is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * callbacks.h is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <Elementary.h>
#include "dbsqlite.h"

int tim_cnt;
Elm_Genlist_Item_Class notify_itc;

extern int  brightness, GSM_st, GPS_st, WiFi_st, bt_st, pend_call, pend_sms;
extern int int_sms, int_log, m_calls, m_sms, show_c_no, l_co;
extern _sms_re Re;

void select_category(void *data, Evas_Object *obj, void *event_info);
void save_wallpaper(void);
void clock_back_clicked(void *user_data, Evas_Object *obj, const char *em, const char *src);
void settings_clicked(void *user_data, Evas_Object *obj, const char *em, const char *src);
void close_win(void *data, Evas_Object *obj, void *event_info);
//void add_pref_toolbar_items(void);
void show_prefs(void *data, Evas_Object *obj, void *event_info);

extern void get_calls();
extern void add_hs_items(Evas_Object *win, Evas_Object *bx, Evas_Object *bt, int i);
extern void log_app(void *data, Evas_Object *obj, void *event_info);
extern void sms_app(void *data, Evas_Object *obj, void *event_info);
extern void contacts_app(void *data, Evas_Object *obj, void *event_info);
extern void add_sms_conv();
extern void set_contact_cat();
extern void manage_contact_cat();
extern void get_cat_contacts(char *cat);
extern void place_call(char *num);
extern void new_sms(void *data, Evas_Object *obj, void *event_info);
extern void add_edit_contact(void *data, Evas_Object *obj, void *event_info);
extern void del_contact (char *num);
extern void resend_sms(_sms_re *bb);
extern void set_seq_db(Evas_Object *li, char *ty);
extern void clear_suspend_timer(void);
extern void del_log_entry(char *path);
extern void clear_opim_db(char *ty);
extern void create_dir_browser_page(void *data, Evas_Object *obj, void *event_info);
extern void app_button_clicked(void *data, Evas_Object *obj, void *event_info);
extern void set_brightness(void *data, Evas_Object *obj, void *event_info);
extern void bt_set(void *data, Evas_Object *obj, void *event_info);
extern void gps_set(void *data, Evas_Object *obj, void *event_info);
extern void wifi_set(void *data, Evas_Object *obj, void *event_info);
extern void gsm_set(void *data, Evas_Object *obj, void *event_info);
extern void get_brightness(void);
extern void add_notifications(Evas_Object *list);

extern char f_date[255], f_time[255], cur_cat[255], launcher_dir[255], wall_path[255], hs_add[255], con_cat[255];
extern char noti_launch[20][255], name[200][255], path[200][255], icon[200][255], app_sms[255], app_calls[255];
extern Evas_Object *clock_lb, *date_lb, *lb, *list, *dir_browser_page_win, *bg, *cat_bt, *app_lb, *cat_hv_bx, *hs;
extern Evas_Object *cat_dialog, *cat_list, *sc, *tb, *vbox, *vbox_right, *ic_calls, *call_lb, *hv, *ic_sms, *sms_lb, *ic_noti, *win;
extern Evas_Object *toolbar, *log_list, *cb_sms, *cb_log, *cb_con, *cb_channel, *cb_hs, *con_hv, *contact_cat_bt;
extern Evas_Object *jump_win, *act_win, *seq_list, *ly_right, *show_apps_win, *main_edje, *set_win, *pref_vbox, *pref_tb;
extern Ecore_X_Window my_win, focus_win;
extern Elm_Genlist_Item_Class itc_dir_list, itc_seq_list, itc2;
extern Ecore_Timer *timer1, *reminder_timer;

extern _dir dir_gl_entry[255];
extern int reconnect_bt, s_timer;
extern _act_element *pass_data, act_el[5];
extern Elm_Genlist_Item_Class itc_act;
